/**
 * @class Ext.Mask
 */

@keyframes spin {
    0% {
			transform: rotate(0deg);
    }
    
    100% {
			transform: rotate(360deg);
    }
}

@-webkit-keyframes webkit-spin {
    from {
        -webkit-transform: rotate(0deg);
    }
    
    to {
        -webkit-transform: rotate(360deg);
    }
}

.x-mask .x-mask-inner {
    background: #fff;
    padding: 10px;
    @include border-radius(10px);
		font-weight: normal;
		width: 50%;
		@include st-box();
		@include st-box-pack(center);
		@include st-box-align(center);
}

.x-mask.x-loading-mask {
	background-color: white;
}

.x-mask .x-loading-spinner-outer {
    position: relative;
    height: auto;
}

.x-mask.x-has-message .x-loading-spinner-outer {
	height: 168px;
}

.x-loading-spinner .x-loading-right,
.x-loading-spinner .x-loading-top,
.x-loading-spinner .x-loading-top:before,
.x-loading-spinner .x-loading-top:after {
    @include border-radius(50%);
}

$spinnerSize: 38px;
$spinnerThickness: 6px;

.x-loading-spinner, .x-mask.x-has-message .x-loading-spinner-outer {
    width: $spinnerSize;
    height: $spinnerSize;
		min-width: $spinnerSize;
}

.x-loading-spinner .x-loading-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    //box-shadow: 0 -2px 2px rgba(0, 0, 0, 0.03), inset 0 2px 6px rgba(0, 0, 0, 0.36), inset 0 -2px 1px rgba(0, 0, 0, 0.06);
}

.x-loading-spinner .x-loading-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: $spinnerThickness solid rgba(0, 0, 0, 0.13);
		-animation: spin 1s infinite linear;
		-webkit-animation: webkit-spin 1s infinite linear;
}

.x-loading-spinner .x-loading-top:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    //box-shadow: 0 -2px 2px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.36);
}

.x-loading-spinner .x-loading-top:after {
    content: '';
    position: absolute;
    top: -$spinnerThickness;
    left: -$spinnerThickness;
    width: $spinnerSize;
    height: $spinnerSize;
    /* base64 image blob */
    background-image: url('');
    background-repeat: no-repeat;
    background-position: top left;
		background-size: 100%;
		border: 1px solid #bababa;
}
